class AddFieldsToEntries < ActiveRecord::Migration
  def self.up
    add_column :entries, "recommender_processed", :boolean, :default => false
    add_index :entries, "recommender_processed"

    add_column :entries, "language", :string
    add_index :entries, "language"
    
    add_column :entries, "direct_link", :string, :limit => 2083
    add_index :entries, "direct_link"
  end
  
  def self.down
    remove_index :entries, :direct_link
    remove_column :entries, :direct_link

    remove_index :entries, :language
    remove_column :entries, :language

    remove_index :entries, :recommender_processed
    remove_column :entries, :recommender_processed
  end
end
